package com.example.demo.Service;

import com.example.demo.Entity.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Component
public class UserFallBack implements UserFeignInterface {
    @Override
    public List<User> getAllUsers() {
        System.out.println("服务器错误，获取所有用户信息失败");
        return null;
    }

    @Override
    public User getUserById(int id) {
        System.out.println("服务器错误，获取用户信息失败");
        return null;
    }

    @Override
    public int count() {
        System.out.println("服务器错误，获取用户数量失败");
        return 0;
    }
}
